package edu.zut.pioneer.notice;

import org.flowable.engine.ProcessEngine;
import org.flowable.engine.ProcessEngineConfiguration;
import org.flowable.engine.impl.cfg.StandaloneProcessEngineConfiguration;
import org.junit.Test;

public class NoticeAble {
    @Test
    public void testProcessEngine(){
        //act ProcessEngineConfiguration
        ProcessEngineConfiguration processEngineConfiguration = new StandaloneProcessEngineConfiguration();
        //setting
        processEngineConfiguration.setJdbcUrl("jdbc:mysql://localhost:3306/pioneer?serverTimezone=UTC");
        processEngineConfiguration.setJdbcUsername("root");
        processEngineConfiguration.setJdbcPassword("123456");
        processEngineConfiguration.setJdbcDriver("com.mysql.cj.jdbc.Driver");
        processEngineConfiguration.setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE);
        //build
        ProcessEngine processEngine=processEngineConfiguration.buildProcessEngine();
        System.out.println("p:"+processEngine);
    }
}
